﻿using Microsoft.VisualBasic;
using Vigenere_Cipher.Model;

namespace Vigenere_Cipher
{
    internal class Program
    {
        /// <summary>
        /// 维吉尼亚密码
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            //输入一段明文 密钥
            Console.Write("输入明文：");
            string Plain = Console.ReadLine();   
            Console.Write("输入密钥：");
            string key = Console.ReadLine();
            //加密
            Encryption encryption = new Encryption();
            encryption.PlainText = Plain;
            encryption.Key = key;
            encryption.encryption();
            Console.WriteLine($"密文为{encryption.CipherText}");
        }
    }
}